package com.game.springbootstart.controller.user;


import com.game.springbootstart.config.Result;
import com.game.springbootstart.entity.GamesDetails;
import com.game.springbootstart.service.IGamesDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 游戏申请表 前端控制器
 * </p>
 *
 * @author author
 * @since 2025-02-24
 */
@RestController
@RequestMapping("/games-detail")
public class GamesDetailsController {
    @Autowired
    private IGamesDetailsService gamesDetailsService;
    @PostMapping("/save")
    public Result save(@RequestBody GamesDetails gamesDetails) {
        gamesDetails.setStatus(1);
        return Result.success(gamesDetailsService.save(gamesDetails));
    }
}
